@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    display:flex;
     /* 主轴 */
    justify-content:center;
    /* 侧轴 */
    align-items:center;
    min-height:100vh;
    /* 设置了容器的背景为一个从左到右的线性渐变 */
    background:linear-gradient(to right, #eb4f4f,#ff8eec,#87cefa);
}
.wrapper{
    /* 相对定位可以用来创建适应不同屏幕尺寸的布局，
    因为它允许元素在不同断点下保持相对位置 */
    /* 相对定位可以与CSS动画和过渡一起使用，创建平滑的移动效果。
    因为元素仍然占据其原始空间，所以可以更容易地实现复杂的动画效果 */
    position:relative;
    width:320px;
    height:400px;
    background:rgba(255,255,255,.2);
    /* 水平，垂直，模糊，阴影，正值向右偏移，负值向左偏移。*/
    box-shadow:0 0 50px rgba(0,0,0,.1);
    border-radius:20px;
    padding: 40px;
}
.form-wrapper{
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: 1s ease-in-out;
}
.wrapper.active .form-wrapper.sign-in{
    transform: scale(0) translate(-200px, 300px);
}
.wrapper .form-wrapper.sign-up{
    position: absolute;
    top: 0;
    transform: scale(0) translate(200px, -300px);
}
.wrapper.active .form-wrapper.sign-up{
    transform: scale(1) translate(0,0);
}
h2{
    font-size: 30px;
    color: #fff;
    text-align: center;
}
.input-group{
    position:relative;
    margin: 30px 0;
    border-bottom: 2px solid #fff;
    
}
.input-group label{
    position: absolute;
    top: 50%;
    left:5px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}
.input-group input{
    width: 240px;
    height: 30px;
    font-size: 16px;
    color: #fff;
    padding: 0 5px;
    background: transparent;
    border: none;
    outline: none;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label{
    top: -5px;
}

.remember{
    margin: -5px 0 15px 5px;
}
.remember label{
    color: #fff;
    font-size: 14px;
}
.remember input{
    accent-color: #fe151c;
}
button{
    position: relative;
    width: 100%;
    height: 35px;
    font-size: 16px;
    color: #fff;
    background: #fe151c;
    cursor: pointer;
    border-radius: 30px;
    border: none;
    outline: none;
}

.signUp-link{
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
}
.signUp-link p{
    color: #fff;
}
.signUp-link p a{
    color: #fe151c;
    text-decoration: none;  
    font-weight: 500;
}
.signUp-link p a:hover{
    text-decoration: underline;
}

.social-platform{
    font-size: 14px;
    color: #fff;
    text-align: center;
}
.social-icons a{
    display:inline-block;
    width: 25px;
    height: 25px;
    background:transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    margin: 5px 6px 0;
    transition: .3s;
}
.social-icons a i{
    color: #fff;
    font-size: 14px;
    transition: .3s;
}
.social-icons a:hover{
    background: #fff;
}
.social-icons a:hover i{
    color: rgba(0,0,0,.3);
}